import 'package:surfaceim/common/entities/entities.dart';
import 'package:surfaceim/common/utils/utils.dart';

class DictionariesAPI {
  /// 用户获取配置
  static Future<UserConfig> conf() async {
    var response = await HttpUtil().post(
      '/user/conf',
    );
    return UserConfig.fromJson(response);
  }

  /// 获取地区数据
  static Future<Area> area() async {
    var response = await HttpUtil().post(
      '/area/list',
    );
    return Area.fromJson(response);
  }
}
